package com.fowo.api.model.position.inventory;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 仓位库存 导入导出辅助模型 */
@Data
public class PositionInventoryExcelPo {

  @NotNull(message = "仓位不能为空")
  @Size(max = 50, message = "仓位长度不能超过20")
  @ExcelProperty(value = "*仓位")
  private String positionStorageBin;

  @ExcelIgnore
  @ExcelProperty(value = "*仓位")
  private Long position;

  @NotBlank(message = "仓位类型不能为空")
  @Size(max = 50, message = "仓位类型长度不能超过20")
  @ExcelProperty(value = "*仓位类型")
  private String type;

  @NotNull(message = "仓库不能为空")
  @Size(max = 50, message = "仓库长度不能超过20")
  @ExcelProperty(value = "*仓库")
  private String warehouseName;

  @ExcelIgnore
  @ExcelProperty(value = "*仓库")
  private Long warehouse;

  @Size(max = 50, message = "款名长度不能超过20")
  @ExcelProperty(value = "款名")
  private String tn;

  @Size(max = 50, message = "SPU长度不能超过20")
  @ExcelProperty(value = "SPU")
  private String spuSpuName;

  @ExcelIgnore
  @ExcelProperty(value = "SPU")
  private Long spu;

  @NotNull(message = "品名不能为空")
  @Size(max = 50, message = "品名长度不能超过20")
  @ExcelProperty(value = "*品名")
  private String tradeNameName;

  @ExcelIgnore
  @ExcelProperty(value = "*品名")
  private Long tradeName;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 50, message = "MSKU长度不能超过20")
  @ExcelProperty(value = "MSKU")
  private String msku;

  @Size(max = 50, message = "FNSKU长度不能超过20")
  @ExcelProperty(value = "FNSKU")
  private String fnsku;

  @NotBlank(message = "属性不能为空")
  @Size(max = 50, message = "属性长度不能超过20")
  @ExcelProperty(value = "*属性")
  private String attribute;

  @Size(max = 50, message = "店铺长度不能超过20")
  @ExcelProperty(value = "店铺")
  private String shop;

  @Size(max = 50, message = "未锁定量长度不能超过20")
  @ExcelProperty(value = "未锁定量")
  private Integer unlockNum;

  @Size(max = 50, message = "锁定量长度不能超过20")
  @ExcelProperty(value = "锁定量")
  private Integer lockNum;

  @Size(max = 50, message = "总量长度不能超过20")
  @ExcelProperty(value = "总量")
  private Integer totalNum;
}
